import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service

const request = {
    //根据条件分页查询供方退货
    supplierRetreat (params) {
        return httpPost({
            url: '/material/supplierReturn/listByEntity',
            params
        })
    },
    //新增供方退货
    AddSupplierRetreat (params) {
        return httpPost({
            url: '/material/supplierReturn/create',
            params
        })
    },
    //修改供方退货
    EditSupplierRetreat (params) {
        return httpPost({
            url: '/material/supplierReturn/update',
            params
        })
    },
    //修改供方退货明细
    EditSupplierRetreatList (params) {
        return httpPost({
            url: '/material/supplierReturn/updateList',
            params
        })
    },
    //获取截止上期末信息
    getSupplierReturnPreviousTotalInfo (params) {
        return httpPost({
            url: '/material/supplierReturn/getSupplierReturnPreviousTotalInfo',
            params
        })
    },
}

export default request